package com.briup.corejava.day08.pojo;

/**
 * 子类2：经理
 */
public class Manager extends Employee{
    // 奖金
    private double bonus;

    public Manager(double bonus) {
        this.bonus = bonus;
    }

    public Manager(String id, String name, double bonus) {
        super(id, name);
        this.bonus = bonus;
    }

    @Override
    public void doWork() {
        // 完全对于父类的逻辑进行了重写
        System.out.println("我是经理，我不需要干活");
    }
}
